
package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.PlaneInfo;
import com.sasis.dao.PlaneInfoDao;
import com.sasis.service.PlaneInfoManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class PlaneInfoManagerImpl extends BaseManager implements PlaneInfoManager {
    private PlaneInfoDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setPlaneInfoDao(PlaneInfoDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.PlaneInfoManager#getPlaneInfos(com.sasis.model.PlaneInfo)
     */
    public List getPlaneInfos(final PlaneInfo planeInfo) {
        return dao.getPlaneInfos(planeInfo);
    }

    /**
     * @see com.sasis.service.PlaneInfoManager#getPlaneInfo(String id)
     */
    public PlaneInfo getPlaneInfo(final String id) {
        return dao.getPlaneInfo(new Integer(id));
    }

    /**
     * @see com.sasis.service.PlaneInfoManager#savePlaneInfo(PlaneInfo planeInfo)
     */
    public void savePlaneInfo(PlaneInfo planeInfo) {
        dao.savePlaneInfo(planeInfo);
    }

    /**
     * @see com.sasis.service.PlaneInfoManager#removePlaneInfo(String id)
     */
    public void removePlaneInfo(final String id) {
        dao.removePlaneInfo(new Integer(id));
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
